package com.wzh.design.cor.cor3;

/**
 * @description: 责任链 模式
 * @author: WZH
 * @time: 2021/5/31 15:55
 */
public abstract class Handler {

    protected  Handler nextHandle;

    public Handler getNextHandle() {
        return nextHandle;
    }

    public void setNextHandle(Handler nextHandle) {
        this.nextHandle = nextHandle;
    }

    //具体处理方法
    public abstract void handleMessage(int type);


}
